package com.info.zhiduoduo.admin.model.formbean.crowdsource;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.info.zhiduoduo.common.utils.DateUtil;
import com.info.zhiduoduo.common.validator.Phone;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Positive;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class SubmitAndPayProjectFormBean {

	@Positive(message = "请选择项目")
	private int projectid;
	@NotEmpty(message = "验证码不能为空")
	private String verifyCode;
	//实际发单企业
	private Integer actualSender;

	@JsonFormat(pattern = DateUtil.FORMAT_STYLE_10, timezone = DateUtil.TIME_ZONE_CHINA)
	@ApiModelProperty("申请开票日期, 字符串日期格式: yyyy-MM")
	private Date applyInvoiceDate;

	@ApiModelProperty("按协议规定开票 0:否 1:是, 默认是")
	private Integer asProtocol;

	@ApiModelProperty("企业的发票备注")
	private String companyInvoiceRemark;
}
